package com.dayuanit.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.dayuanit.domain.ShoppingCart;

@Repository
public interface CartDao {

	int addCart(ShoppingCart cart);
	
	ShoppingCart getCart(@Param("userId")Integer userId, @Param("productId")Integer productId, @Param("productType")String productType);

	List<ShoppingCart> listCarts(@Param("userId")Integer userId);

	int modfiyProductCount(ShoppingCart cart);
}
